<?php
require_once(str_replace("\\", "/", dirname(__FILE__)) . "/../config.inc.php");
$key = $_POST["key"];
$val = $_POST["val"];
$user = $context->getBean("modules.accounts.business.user");
echo $user->setPreference($key, $val);
?>
